package com.fyyg.service.user;

import com.fyyg.common.page.PageData;
import com.fyyg.common.page.PageParam;
import com.fyyg.dal.user.TBusiMemberAccountLogMapper;
import com.fyyg.dal.user.TBusiMemberMapper;
import com.fyyg.interfaces.user.TBusiMemberAccountLogService;
import com.fyyg.model.TBusiMemberAccountLog;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

@Service("busiMemberAccountLogService")
public class TBusiMemberAccountLogServiceImpl implements TBusiMemberAccountLogService {
	
	@Autowired
	TBusiMemberAccountLogMapper tBusiMemberAccountLogMapper;
	@Autowired
	TBusiMemberMapper memberMapper;
	
	
	
	@Override
	public PageData<TBusiMemberAccountLog> pageQueryMemberAccountLog( PageParam<TBusiMemberAccountLog> pageParam) {
		List<TBusiMemberAccountLog> list = tBusiMemberAccountLogMapper.pageQueryMemberAccountLog(pageParam);
		return  new PageData<>(pageParam.getPageNo(),pageParam.getPageSize(),pageParam.getDataTotal(),list);
	}

	@Override
	public String querySumMoney(TBusiMemberAccountLog accountLog) {
		return tBusiMemberAccountLogMapper.querySumMoney(accountLog);
	}
	@Override
	public Integer findPageCount(Map<String, Object> parameterMap) {
		return tBusiMemberAccountLogMapper.findPageCount(parameterMap);
	}
	@Override
	public List<Map<String, Object>> findPageList( Map<String, Object> parameterMap) {
		return tBusiMemberAccountLogMapper.findPageList(parameterMap);
	}
	
	@Override
	public int insert(TBusiMemberAccountLog accountLog) {
		return tBusiMemberAccountLogMapper.insert(accountLog);
	}
	
	@Override
	public List<TBusiMemberAccountLog>  selectAllSubAccountLogByUid(Map<String,Object> map){
		return tBusiMemberAccountLogMapper.selectAllSubAccountLogByUid(map);
	}
	@Override
	public Integer selectAllSubAccountLogCount(Map<String, Object> map) {
		return tBusiMemberAccountLogMapper.selectAllSubAccountLogCount(map);
	}
	
	
	
	
	
	
	@Override
	public Integer selectAccountLogInMoney(String uid) {
		return tBusiMemberAccountLogMapper.selectAccountLogInMoney(uid);
	}
	
	@Override
	public Integer selectSubAccountMoney(String uid) {
		return tBusiMemberAccountLogMapper.selectSubAccountMoney(uid);
	}
	
	@Override
	public Map<String,String> selectSubAccountOperateMoney(String uid) {
		return tBusiMemberAccountLogMapper.selectSubAccountOperateMoney(uid);
	}
	
	
	@Override
	public Map<String, Object> selectSubAccountCountByStatus(String uid) {
		return memberMapper.selectSubAccountCountByStatus(uid);
	}

	@Override
	public Integer memberAddMoneySum(Integer uid) {
		return tBusiMemberAccountLogMapper.memberAddMoneySum(uid);
	}

	@Override
	public List<Map<String, Object>> queryMemberAccountLogTrans(
			Map<String, Object> param) {
		// TODO Auto-generated method stub
		return tBusiMemberAccountLogMapper.queryMemberAccountLogTrans(param);
	}

	@Override
	public Integer queryMemberAccountLogTransCount(Map<String, Object> param) {
		// TODO Auto-generated method stub
		return tBusiMemberAccountLogMapper.queryMemberAccountLogTransCount(param);
	}

	@Override
	public BigDecimal queryMemberAccountLogTransCountMoney(
			Map<String, Object> param) {
		// TODO Auto-generated method stub
		return tBusiMemberAccountLogMapper.queryMemberAccountLogTransCountMoney(param);
	}


}
